cmake_minimum_required(VERSION 3.5)
project(vision_tracker)

add_definitions(-std=c++14 -O3)

find_package(Eigen3 REQUIRED)
find_package(OpenCV REQUIRED)
find_package(PCL 1.8 REQUIRED COMPONENTS)

find_package(catkin REQUIRED COMPONENTS
    roscpp
    rospy
    geometry_msgs
    sensor_msgs
    cv_bridge
    tf
)

include_directories(
    include
    ${catkin_INCLUDE_DIRS}
    ${EIGEN3_INCLUDE_DIR}
    ${OpenCV_INCLUDE_DIRS}
    ${PCL_INCLUDE_DIRS}
)

catkin_package(
    INCLUDE_DIRS include
)

add_executable(vision_tracker_node src/vision_tracker_node.cpp src/vision_tracker.cpp)
target_link_libraries(vision_tracker_node ${catkin_LIBRARIES} ${OpenCV_LIBS} ${PCL_LIBRARY_DIRS} ${PCL_LIBRARIES})